//
//  BXBAView.m
//  HNJYB
//
//  Created by panshen on 2017/10/25.
//  Copyright © 2017年 Mag1cPanda. All rights reserved.
//

#import "BXBAView.h"
#import "CompanyListView.h"

@implementation BXBAView

-(void)awakeFromNib
{
    NSLog(@"awakeFromNib");
    _listView = [[CompanyListView alloc] init];
    [super awakeFromNib];
}

- (IBAction)jqxBtnClicked:(id)sender {
    
    __weak typeof(self) weakSelf = self;
    _listView.block = ^(NSDictionary *company) {
      
        [weakSelf.jqxBtn setTitle:company[@"inscomname"] forState:0];
        weakSelf.inscomname = company[@"inscomname"];
        weakSelf.inscomcode = company[@"inscomcode"];
        
    };
    [[UIApplication sharedApplication].keyWindow addSubview:_listView];
}

- (IBAction)syxBtnClicked:(id)sender {
    
    
    __weak typeof(self) weakSelf = self;
    _listView.block = ^(NSDictionary *company) {
        
        [weakSelf.syxBtn setTitle:company[@"inscomname"] forState:0];
        weakSelf.bussisinscompany = company[@"inscomname"];
        weakSelf.bussisinscomcode = company[@"inscomcode"];
        
    };
    [[UIApplication sharedApplication].keyWindow addSubview:_listView];
}



@end
